﻿#include "Launcher.Config.h"
#include "../../Shared/Language.h"
#include "../Properties/Resources.Designer.h"
#include "../Settings.h"
#include "../Program.h"

using namespace Client;

namespace Launcher
{

    Config::Config()
    {
        InitializeComponent();
    }

    void Config::Config_Load(std::any sender, EventArgs *e)
    {
        this->label10->Text = GameLanguage::Resolution;
        this->AutoStart_label->Text = GameLanguage::Autostart;
        this->ID_l->Text = GameLanguage::Usrname;
        this->Password_l->Text = GameLanguage::Password;
    }

    void Config::Res1_pb_Click(std::any sender, EventArgs *e)
    {
        resolutionChoice(1024);
    }

    void Config::resolutionChoice(int res)
    {
        Res2_pb->Image = Client::Properties::Resources::getRadioUnactive();
        Res3_pb->Image = Client::Properties::Resources::getRadioUnactive();
        Res4_pb->Image = Client::Properties::Resources::getRadioUnactive();
        Res5_pb->Image = Client::Properties::Resources::getRadioUnactive();

        if (res == 1024)
        {
            Res2_pb->Image = Client::Properties::Resources::getConfigRadioOn();
        }
        else if (res == 1366)
        {
            Res3_pb->Image = Client::Properties::Resources::getConfigRadioOn();
        }
        else if (res == 1280)
        {
            Res4_pb->Image = Client::Properties::Resources::getConfigRadioOn();
        }
        else if (res == 1920)
        {
            Res5_pb->Image = Client::Properties::Resources::getConfigRadioOn();
        }

        Settings::Resolution = res;
    }

    void Config::Res2_pb_Click(std::any sender, EventArgs *e)
    {
        resolutionChoice(1024);
    }

    void Config::Res3_pb_Click(std::any sender, EventArgs *e)
    {
        resolutionChoice(1366);
    }

    void Config::Config_VisibleChanged(std::any sender, EventArgs *e)
    {
        if (Visible)
        {
            AccountLogin_txt->Text = Settings::AccountID;
            AccountPass_txt->Text = Settings::Password;
            resolutionChoice(Settings::Resolution);

            if (Settings::FullScreen)
            {
                Fullscreen_pb->Image = Client::Properties::Resources::getConfigCheckOn();
            }
            else
            {
                Fullscreen_pb->Image = Client::Properties::Resources::getConfigCheckOff1();
            }

            if (Settings::FPSCap)
            {
                FPScap_pb->Image = Client::Properties::Resources::getConfigCheckOn();
            }
            else
            {
                FPScap_pb->Image = Client::Properties::Resources::getConfigCheckOff1();
            }

            if (Settings::TopMost)
            {
                OnTop_pb->Image = Client::Properties::Resources::getConfigCheckOn();
            }
            else
            {
                OnTop_pb->Image = Client::Properties::Resources::getConfigCheckOff1();
            }

            if (Settings::P_AutoStart)
            {
                AutoStart_pb->Image = Client::Properties::Resources::getConfigCheckOn();
            }
            else
            {
                AutoStart_pb->Image = Client::Properties::Resources::getConfigCheckOff1();
            }

            this->ActiveControl = label4;
        }
        else
        {
            Settings::AccountID = AccountLogin_txt->Text;
            Settings::Password = AccountPass_txt->Text;
            Settings::Save();
        }
    }

    void Config::AccountLogin_txt_TextChanged(std::any sender, EventArgs *e)
    {
        if (AccountLogin_txt->Text == "")
        {
            ID_l->Visible = true;
        }
        else
        {
            ID_l->Visible = false;
        }
    }

    void Config::AccountPass_txt_TextChanged(std::any sender, EventArgs *e)
    {
        if (AccountPass_txt->Text == "")
        {
            Password_l->Visible = true;
        }
        else
        {
            Password_l->Visible = false;
        }
    }

    void Config::AccountLogin_txt_Click(std::any sender, EventArgs *e)
    {
        ID_l->Visible = false;
        AccountLogin_txt->Focus();
    }

    void Config::AccountPass_txt_Click(std::any sender, EventArgs *e)
    {
        Password_l->Visible = false;
        AccountPass_txt->Focus();
    }

    void Config::Config_Click(std::any sender, EventArgs *e)
    {
        this->ActiveControl = label4;
    }

    void Config::Fullscreen_pb_Click(std::any sender, EventArgs *e)
    {
        Settings::FullScreen = !Settings::FullScreen;

        if (Settings::FullScreen)
        {
            Fullscreen_pb->Image = Client::Properties::Resources::getConfigCheckOn();
        }
        else
        {
            Fullscreen_pb->Image = Client::Properties::Resources::getConfigCheckOff1();
        }
    }

    void Config::FPScap_pb_Click(std::any sender, EventArgs *e)
    {
        Settings::FPSCap = !Settings::FPSCap;

        if (Settings::FPSCap)
        {
            FPScap_pb->Image = Client::Properties::Resources::getConfigCheckOn();
        }
        else
        {
            FPScap_pb->Image = Client::Properties::Resources::getConfigCheckOff1();
        }
    }

    void Config::OnTop_pb_Click(std::any sender, EventArgs *e)
    {
        Settings::TopMost = !Settings::TopMost;

        if (Settings::TopMost)
        {
            OnTop_pb->Image = Client::Properties::Resources::getConfigCheckOn();
        }
        else
        {
            OnTop_pb->Image = Client::Properties::Resources::getConfigCheckOff1();
        }
    }

    void Config::AutoStart_pb_Click(std::any sender, EventArgs *e)
    {
        Settings::P_AutoStart = !Settings::P_AutoStart;

        if (Settings::P_AutoStart)
        {
            AutoStart_pb->Image = Client::Properties::Resources::getConfigCheckOn();
        }
        else
        {
            AutoStart_pb->Image = Client::Properties::Resources::getConfigCheckOff1();
        }
    }

    void Config::CleanFiles_pb_MouseDown(std::any sender, MouseEventArgs *e)
    {
        CleanFiles_pb->Image = Client::Properties::Resources::getCheckFPressed();
    }

    void Config::CleanFiles_pb_MouseUp(std::any sender, MouseEventArgs *e)
    {
        CleanFiles_pb->Image = Client::Properties::Resources::getCheckFBase2();
    }

    void Config::CleanFiles_pb_MouseEnter(std::any sender, EventArgs *e)
    {
        CleanFiles_pb->Image = Client::Properties::Resources::getCheckFHover();
    }

    void Config::CleanFiles_pb_MouseLeave(std::any sender, EventArgs *e)
    {
        CleanFiles_pb->Image = Client::Properties::Resources::getCheckFBase2();
    }

    void Config::CleanFiles_pb_Click(std::any sender, EventArgs *e)
    {
        if (!Program::PForm->Launch_pb->Enabled)
        {
            return;
        }

        Program::PForm->Completed = false;
        Program::PForm->InterfaceTimer->Enabled = true;
        Program::PForm->CleanFiles = true;
        Program::PForm->_workThread = new Thread([&] () {Program::PForm->Start();});
        Program::PForm->_workThread->IsBackground = true;
        Program::PForm->_workThread->Start();
    }

    void Config::Res4_pb_Click(std::any sender, EventArgs *e)
    {
        resolutionChoice(1280);
    }

    void Config::Res5_pb_Click(std::any sender, EventArgs *e)
    {
        resolutionChoice(1920);
    }

    void Config::Dispose(bool disposing)
    {
        if (disposing && (components != nullptr))
        {
            components->Dispose();
        }
        System::Windows::Forms::Form::Dispose(disposing);
    }

    void Config::InitializeComponent()
    {
        this->AccountLogin_txt = new System::Windows::Forms::TextBox();
        this->AccountPass_txt = new System::Windows::Forms::TextBox();
        this->label2 = new System::Windows::Forms::Label();
        this->label3 = new System::Windows::Forms::Label();
        this->Res3_pb = new System::Windows::Forms::PictureBox();
        this->Res2_pb = new System::Windows::Forms::PictureBox();
        this->ID_l = new System::Windows::Forms::Label();
        this->Password_l = new System::Windows::Forms::Label();
        this->label4 = new System::Windows::Forms::Label();
        this->AutoStart_pb = new System::Windows::Forms::PictureBox();
        this->AutoStart_label = new System::Windows::Forms::Label();
        this->Fullscreen_label = new System::Windows::Forms::Label();
        this->Fullscreen_pb = new System::Windows::Forms::PictureBox();
        this->OnTop_label = new System::Windows::Forms::Label();
        this->OnTop_pb = new System::Windows::Forms::PictureBox();
        this->FPScap_label = new System::Windows::Forms::Label();
        this->FPScap_pb = new System::Windows::Forms::PictureBox();
        this->CleanFiles_pb = new System::Windows::Forms::PictureBox();
        this->pictureBox6 = new System::Windows::Forms::PictureBox();
        this->label9 = new System::Windows::Forms::Label();
        this->label10 = new System::Windows::Forms::Label();
        this->label11 = new System::Windows::Forms::Label();
        this->label12 = new System::Windows::Forms::Label();
        this->label5 = new System::Windows::Forms::Label();
        this->Res4_pb = new System::Windows::Forms::PictureBox();
        this->label1 = new System::Windows::Forms::Label();
        this->Res5_pb = new System::Windows::Forms::PictureBox();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->Res3_pb))->BeginInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->Res2_pb))->BeginInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->AutoStart_pb))->BeginInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->Fullscreen_pb))->BeginInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->OnTop_pb))->BeginInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->FPScap_pb))->BeginInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->CleanFiles_pb))->BeginInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->pictureBox6))->BeginInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->Res4_pb))->BeginInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->Res5_pb))->BeginInit();
        this->SuspendLayout();
        // 
        // AccountLogin_txt
        // 
        this->AccountLogin_txt->BackColor = System::Drawing::Color::FromArgb((static_cast<int>((static_cast<unsigned char>(64)))), (static_cast<int>((static_cast<unsigned char>(64)))), (static_cast<int>((static_cast<unsigned char>(64)))));
        this->AccountLogin_txt->BorderStyle = System::Windows::Forms::BorderStyle::None;
        this->AccountLogin_txt->Cursor = System::Windows::Forms::Cursors::IBeam;
        this->AccountLogin_txt->Font = new System::Drawing::Font("Calibri", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->AccountLogin_txt->ForeColor = System::Drawing::Color::White;
        this->AccountLogin_txt->Location = new System::Drawing::Point(22, 190);
        this->AccountLogin_txt->Name = "AccountLogin_txt";
        this->AccountLogin_txt->Size = new System::Drawing::Size(123, 15);
        this->AccountLogin_txt->TabIndex = 0;
        this->AccountLogin_txt->Tag = "Testing";
        this->AccountLogin_txt->Click += new System::EventHandler(this->AccountLogin_txt_Click);
        this->AccountLogin_txt->TextChanged += new System::EventHandler(this->AccountLogin_txt_TextChanged);
        this->AccountLogin_txt->Leave += new System::EventHandler(this->AccountLogin_txt_TextChanged);
        // 
        // AccountPass_txt
        // 
        this->AccountPass_txt->BackColor = System::Drawing::Color::FromArgb((static_cast<int>((static_cast<unsigned char>(64)))), (static_cast<int>((static_cast<unsigned char>(64)))), (static_cast<int>((static_cast<unsigned char>(64)))));
        this->AccountPass_txt->BorderStyle = System::Windows::Forms::BorderStyle::None;
        this->AccountPass_txt->Font = new System::Drawing::Font("Calibri", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->AccountPass_txt->ForeColor = System::Drawing::Color::White;
        this->AccountPass_txt->Location = new System::Drawing::Point(22, 218);
        this->AccountPass_txt->Name = "AccountPass_txt";
        this->AccountPass_txt->PasswordChar = '*';
        this->AccountPass_txt->Size = new System::Drawing::Size(123, 15);
        this->AccountPass_txt->TabIndex = 1;
        this->AccountPass_txt->Click += new System::EventHandler(this->AccountPass_txt_Click);
        this->AccountPass_txt->TextChanged += new System::EventHandler(this->AccountPass_txt_TextChanged);
        this->AccountPass_txt->Leave += new System::EventHandler(this->AccountPass_txt_TextChanged);
        // 
        // label2
        // 
        this->label2->AutoSize = true;
        this->label2->BackColor = System::Drawing::Color::Transparent;
        this->label2->Font = new System::Drawing::Font("Calibri", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label2->ForeColor = System::Drawing::Color::Gray;
        this->label2->Location = new System::Drawing::Point(160, 51);
        this->label2->Name = "label2";
        this->label2->Size = new System::Drawing::Size(54, 13);
        this->label2->TabIndex = 5;
        this->label2->Text = "1024x768";
        this->label2->Click += new System::EventHandler(this->Res2_pb_Click);
        // 
        // label3
        // 
        this->label3->AutoSize = true;
        this->label3->BackColor = System::Drawing::Color::Transparent;
        this->label3->Font = new System::Drawing::Font("Calibri", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label3->ForeColor = System::Drawing::Color::Gray;
        this->label3->Location = new System::Drawing::Point(160, 87);
        this->label3->Name = "label3";
        this->label3->Size = new System::Drawing::Size(54, 13);
        this->label3->TabIndex = 7;
        this->label3->Text = "1366x768";
        this->label3->Click += new System::EventHandler(this->Res3_pb_Click);
        // 
        // Res3_pb
        // 
        this->Res3_pb->Image = ::Client->Properties->Resources::getRadioUnactive();
        this->Res3_pb->Location = new System::Drawing::Point(142, 87);
        this->Res3_pb->Name = "Res3_pb";
        this->Res3_pb->Size = new System::Drawing::Size(12, 12);
        this->Res3_pb->TabIndex = 6;
        this->Res3_pb->TabStop = false;
        this->Res3_pb->Click += new System::EventHandler(this->Res3_pb_Click);
        // 
        // Res2_pb
        // 
        this->Res2_pb->Image = ::Client->Properties->Resources::getRadioUnactive();
        this->Res2_pb->Location = new System::Drawing::Point(142, 51);
        this->Res2_pb->Name = "Res2_pb";
        this->Res2_pb->Size = new System::Drawing::Size(12, 12);
        this->Res2_pb->TabIndex = 4;
        this->Res2_pb->TabStop = false;
        this->Res2_pb->Click += new System::EventHandler(this->Res2_pb_Click);
        // 
        // ID_l
        // 
        this->ID_l->BackColor = System::Drawing::Color::Transparent;
        this->ID_l->Cursor = System::Windows::Forms::Cursors::IBeam;
        this->ID_l->Enabled = false;
        this->ID_l->Font = new System::Drawing::Font("Calibri", 9.75F, System::Drawing::FontStyle::Italic, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->ID_l->ForeColor = System::Drawing::Color::DarkGray;
        this->ID_l->Location = new System::Drawing::Point(22, 190);
        this->ID_l->Name = "ID_l";
        this->ID_l->Size = new System::Drawing::Size(123, 15);
        this->ID_l->TabIndex = 8;
        this->ID_l->Text = "Username";
        this->ID_l->Click += new System::EventHandler(this->AccountLogin_txt_Click);
        // 
        // Password_l
        // 
        this->Password_l->BackColor = System::Drawing::Color::Transparent;
        this->Password_l->Cursor = System::Windows::Forms::Cursors::IBeam;
        this->Password_l->Enabled = false;
        this->Password_l->Font = new System::Drawing::Font("Calibri Light", 9.75F, System::Drawing::FontStyle::Italic, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->Password_l->ForeColor = System::Drawing::Color::DarkGray;
        this->Password_l->Location = new System::Drawing::Point(22, 218);
        this->Password_l->Name = "Password_l";
        this->Password_l->Size = new System::Drawing::Size(123, 15);
        this->Password_l->TabIndex = 9;
        this->Password_l->Text = "Password";
        this->Password_l->Click += new System::EventHandler(this->AccountPass_txt_Click);
        // 
        // label4
        // 
        this->label4->AutoSize = true;
        this->label4->BackColor = System::Drawing::Color::Transparent;
        this->label4->Location = new System::Drawing::Point(224, 27);
        this->label4->Name = "label4";
        this->label4->Size = new System::Drawing::Size(0, 13);
        this->label4->TabIndex = 10;
        // 
        // AutoStart_pb
        // 
        this->AutoStart_pb->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Center;
        this->AutoStart_pb->Image = ::Client->Properties->Resources::getConfigCheckOff1();
        this->AutoStart_pb->Location = new System::Drawing::Point(15, 148);
        this->AutoStart_pb->Name = "AutoStart_pb";
        this->AutoStart_pb->Size = new System::Drawing::Size(12, 12);
        this->AutoStart_pb->TabIndex = 11;
        this->AutoStart_pb->TabStop = false;
        this->AutoStart_pb->Click += new System::EventHandler(this->AutoStart_pb_Click);
        // 
        // AutoStart_label
        // 
        this->AutoStart_label->AutoSize = true;
        this->AutoStart_label->BackColor = System::Drawing::Color::Transparent;
        this->AutoStart_label->Font = new System::Drawing::Font("Calibri", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->AutoStart_label->ForeColor = System::Drawing::Color::Gray;
        this->AutoStart_label->Location = new System::Drawing::Point(30, 147);
        this->AutoStart_label->Name = "AutoStart_label";
        this->AutoStart_label->Size = new System::Drawing::Size(54, 13);
        this->AutoStart_label->TabIndex = 12;
        this->AutoStart_label->Text = "Auto start";
        this->AutoStart_label->Click += new System::EventHandler(this->AutoStart_pb_Click);
        // 
        // Fullscreen_label
        // 
        this->Fullscreen_label->AutoSize = true;
        this->Fullscreen_label->BackColor = System::Drawing::Color::Transparent;
        this->Fullscreen_label->Font = new System::Drawing::Font("Calibri", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->Fullscreen_label->ForeColor = System::Drawing::Color::Gray;
        this->Fullscreen_label->Location = new System::Drawing::Point(30, 51);
        this->Fullscreen_label->Name = "Fullscreen_label";
        this->Fullscreen_label->Size = new System::Drawing::Size(56, 13);
        this->Fullscreen_label->TabIndex = 14;
        this->Fullscreen_label->Text = "Fullscreen";
        this->Fullscreen_label->Click += new System::EventHandler(this->Fullscreen_pb_Click);
        // 
        // Fullscreen_pb
        // 
        this->Fullscreen_pb->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Center;
        this->Fullscreen_pb->Image = ::Client->Properties->Resources::getConfigCheckOff1();
        this->Fullscreen_pb->Location = new System::Drawing::Point(15, 51);
        this->Fullscreen_pb->Name = "Fullscreen_pb";
        this->Fullscreen_pb->Size = new System::Drawing::Size(12, 12);
        this->Fullscreen_pb->TabIndex = 13;
        this->Fullscreen_pb->TabStop = false;
        this->Fullscreen_pb->Click += new System::EventHandler(this->Fullscreen_pb_Click);
        // 
        // OnTop_label
        // 
        this->OnTop_label->AutoSize = true;
        this->OnTop_label->BackColor = System::Drawing::Color::Transparent;
        this->OnTop_label->Font = new System::Drawing::Font("Calibri", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->OnTop_label->ForeColor = System::Drawing::Color::Gray;
        this->OnTop_label->Location = new System::Drawing::Point(30, 98);
        this->OnTop_label->Name = "OnTop_label";
        this->OnTop_label->Size = new System::Drawing::Size(72, 13);
        this->OnTop_label->TabIndex = 16;
        this->OnTop_label->Text = "Always on top";
        this->OnTop_label->Click += new System::EventHandler(this->OnTop_pb_Click);
        // 
        // OnTop_pb
        // 
        this->OnTop_pb->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Center;
        this->OnTop_pb->Image = ::Client->Properties->Resources::getConfigCheckOff1();
        this->OnTop_pb->Location = new System::Drawing::Point(15, 98);
        this->OnTop_pb->Name = "OnTop_pb";
        this->OnTop_pb->Size = new System::Drawing::Size(12, 12);
        this->OnTop_pb->TabIndex = 15;
        this->OnTop_pb->TabStop = false;
        this->OnTop_pb->Click += new System::EventHandler(this->OnTop_pb_Click);
        // 
        // FPScap_label
        // 
        this->FPScap_label->AutoSize = true;
        this->FPScap_label->BackColor = System::Drawing::Color::Transparent;
        this->FPScap_label->Font = new System::Drawing::Font("Calibri", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->FPScap_label->ForeColor = System::Drawing::Color::Gray;
        this->FPScap_label->Location = new System::Drawing::Point(30, 73);
        this->FPScap_label->Name = "FPScap_label";
        this->FPScap_label->Size = new System::Drawing::Size(42, 13);
        this->FPScap_label->TabIndex = 18;
        this->FPScap_label->Text = "FPS cap";
        this->FPScap_label->Click += new System::EventHandler(this->FPScap_pb_Click);
        // 
        // FPScap_pb
        // 
        this->FPScap_pb->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Center;
        this->FPScap_pb->Image = ::Client->Properties->Resources::getConfigCheckOff1();
        this->FPScap_pb->Location = new System::Drawing::Point(15, 74);
        this->FPScap_pb->Name = "FPScap_pb";
        this->FPScap_pb->Size = new System::Drawing::Size(12, 12);
        this->FPScap_pb->TabIndex = 17;
        this->FPScap_pb->TabStop = false;
        this->FPScap_pb->Click += new System::EventHandler(this->FPScap_pb_Click);
        // 
        // CleanFiles_pb
        // 
        this->CleanFiles_pb->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Center;
        this->CleanFiles_pb->Image = ::Client->Properties->Resources::getCheckFBase2();
        this->CleanFiles_pb->Location = new System::Drawing::Point(9, 278);
        this->CleanFiles_pb->Name = "CleanFiles_pb";
        this->CleanFiles_pb->Size = new System::Drawing::Size(67, 23);
        this->CleanFiles_pb->TabIndex = 19;
        this->CleanFiles_pb->TabStop = false;
        this->CleanFiles_pb->Click += new System::EventHandler(this->CleanFiles_pb_Click);
        this->CleanFiles_pb->MouseDown += new System::Windows::Forms::MouseEventHandler(this->CleanFiles_pb_MouseDown);
        this->CleanFiles_pb->MouseEnter += new System::EventHandler(this->CleanFiles_pb_MouseEnter);
        this->CleanFiles_pb->MouseLeave += new System::EventHandler(this->CleanFiles_pb_MouseLeave);
        this->CleanFiles_pb->MouseUp += new System::Windows::Forms::MouseEventHandler(this->CleanFiles_pb_MouseUp);
        // 
        // pictureBox6
        // 
        this->pictureBox6->BackColor = System::Drawing::Color::Transparent;
        this->pictureBox6->Image = ::Client->Properties->Resources::getTextboxes();
        this->pictureBox6->Location = new System::Drawing::Point(15, 183);
        this->pictureBox6->Name = "pictureBox6";
        this->pictureBox6->Size = new System::Drawing::Size(139, 57);
        this->pictureBox6->TabIndex = 20;
        this->pictureBox6->TabStop = false;
        // 
        // label9
        // 
        this->label9->AutoSize = true;
        this->label9->BackColor = System::Drawing::Color::Transparent;
        this->label9->Font = new System::Drawing::Font("Calibri", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label9->ForeColor = System::Drawing::Color::White;
        this->label9->Location = new System::Drawing::Point(6, 28);
        this->label9->Name = "label9";
        this->label9->Size = new System::Drawing::Size(55, 14);
        this->label9->TabIndex = 21;
        this->label9->Text = "Graphics";
        // 
        // label10
        // 
        this->label10->AutoSize = true;
        this->label10->BackColor = System::Drawing::Color::Transparent;
        this->label10->Font = new System::Drawing::Font("Calibri", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label10->ForeColor = System::Drawing::Color::White;
        this->label10->Location = new System::Drawing::Point(133, 28);
        this->label10->Name = "label10";
        this->label10->Size = new System::Drawing::Size(66, 14);
        this->label10->TabIndex = 22;
        this->label10->Text = "Resolution";
        // 
        // label11
        // 
        this->label11->AutoSize = true;
        this->label11->BackColor = System::Drawing::Color::Transparent;
        this->label11->Font = new System::Drawing::Font("Calibri", 9.0F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label11->ForeColor = System::Drawing::Color::White;
        this->label11->Location = new System::Drawing::Point(6, 126);
        this->label11->Name = "label11";
        this->label11->Size = new System::Drawing::Size(39, 14);
        this->label11->TabIndex = 23;
        this->label11->Text = "Game";
        // 
        // label12
        // 
        this->label12->AutoSize = true;
        this->label12->BackColor = System::Drawing::Color::Transparent;
        this->label12->Font = new System::Drawing::Font("Calibri", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label12->ForeColor = System::Drawing::Color::Gray;
        this->label12->Location = new System::Drawing::Point(16, 169);
        this->label12->Name = "label12";
        this->label12->Size = new System::Drawing::Size(80, 13);
        this->label12->TabIndex = 24;
        this->label12->Text = "Account details";
        // 
        // label5
        // 
        this->label5->AutoSize = true;
        this->label5->BackColor = System::Drawing::Color::Transparent;
        this->label5->Font = new System::Drawing::Font("Calibri", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label5->ForeColor = System::Drawing::Color::Gray;
        this->label5->Location = new System::Drawing::Point(160, 69);
        this->label5->Name = "label5";
        this->label5->Size = new System::Drawing::Size(54, 13);
        this->label5->TabIndex = 26;
        this->label5->Text = "1280x800";
        // 
        // Res4_pb
        // 
        this->Res4_pb->Image = ::Client->Properties->Resources::getRadioUnactive();
        this->Res4_pb->Location = new System::Drawing::Point(142, 69);
        this->Res4_pb->Name = "Res4_pb";
        this->Res4_pb->Size = new System::Drawing::Size(12, 12);
        this->Res4_pb->TabIndex = 25;
        this->Res4_pb->TabStop = false;
        this->Res4_pb->Click += new System::EventHandler(this->Res4_pb_Click);
        // 
        // label1
        // 
        this->label1->AutoSize = true;
        this->label1->BackColor = System::Drawing::Color::Transparent;
        this->label1->Font = new System::Drawing::Font("Calibri", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (static_cast<unsigned char>(0)));
        this->label1->ForeColor = System::Drawing::Color::Gray;
        this->label1->Location = new System::Drawing::Point(160, 105);
        this->label1->Name = "label1";
        this->label1->Size = new System::Drawing::Size(60, 13);
        this->label1->TabIndex = 27;
        this->label1->Text = "1920x1080";
        // 
        // Res5_pb
        // 
        this->Res5_pb->Image = ::Client->Properties->Resources::getRadioUnactive();
        this->Res5_pb->Location = new System::Drawing::Point(142, 105);
        this->Res5_pb->Name = "Res5_pb";
        this->Res5_pb->Size = new System::Drawing::Size(12, 12);
        this->Res5_pb->TabIndex = 28;
        this->Res5_pb->TabStop = false;
        this->Res5_pb->Click += new System::EventHandler(this->Res5_pb_Click);
        // 
        // Config
        // 
        this->AutoScaleDimensions = new System::Drawing::SizeF(6.0F, 13.0F);
        this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
        this->BackColor = System::Drawing::Color::Black;
        this->BackgroundImage = ::Client->Properties->Resources::getConfigBase1();
        this->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Center;
        this->ClientSize = new System::Drawing::Size(230, 311);
        this->Controls->Add(this->Res5_pb);
        this->Controls->Add(this->label1);
        this->Controls->Add(this->label5);
        this->Controls->Add(this->Res4_pb);
        this->Controls->Add(this->label12);
        this->Controls->Add(this->label11);
        this->Controls->Add(this->label10);
        this->Controls->Add(this->label9);
        this->Controls->Add(this->CleanFiles_pb);
        this->Controls->Add(this->FPScap_label);
        this->Controls->Add(this->FPScap_pb);
        this->Controls->Add(this->OnTop_label);
        this->Controls->Add(this->OnTop_pb);
        this->Controls->Add(this->Fullscreen_label);
        this->Controls->Add(this->Fullscreen_pb);
        this->Controls->Add(this->AutoStart_label);
        this->Controls->Add(this->AutoStart_pb);
        this->Controls->Add(this->label4);
        this->Controls->Add(this->Password_l);
        this->Controls->Add(this->ID_l);
        this->Controls->Add(this->label3);
        this->Controls->Add(this->Res3_pb);
        this->Controls->Add(this->label2);
        this->Controls->Add(this->Res2_pb);
        this->Controls->Add(this->AccountPass_txt);
        this->Controls->Add(this->AccountLogin_txt);
        this->Controls->Add(this->pictureBox6);
        this->DoubleBuffered = true;
        this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::None;
        this->Name = "Config";
        this->Opacity = 0.94;
        this->ShowIcon = false;
        this->ShowInTaskbar = false;
        this->SizeGripStyle = System::Windows::Forms::SizeGripStyle::Hide;
        this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
        this->Text = "Config";
        this->TransparencyKey = System::Drawing::Color::Black;
        this->Load += new System::EventHandler(this->Config_Load);
        this->VisibleChanged += new System::EventHandler(this->Config_VisibleChanged);
        this->Click += new System::EventHandler(this->Config_Click);
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->Res3_pb))->EndInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->Res2_pb))->EndInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->AutoStart_pb))->EndInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->Fullscreen_pb))->EndInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->OnTop_pb))->EndInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->FPScap_pb))->EndInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->CleanFiles_pb))->EndInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->pictureBox6))->EndInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->Res4_pb))->EndInit();
        (static_cast<System::ComponentModel::ISupportInitialize*>(this->Res5_pb))->EndInit();
        this->ResumeLayout(false);
        this->PerformLayout();

    }
}
